package org.ricks.game.rpc;

import org.ricks.net.action.rpc.RpcClient;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class RpcContext {

    private final static Map<Integer, RpcClient> rpcClientMap = new ConcurrentHashMap<>();

    public static void  re (int sid,  RpcClient client) {
        rpcClientMap.put(sid, client);
    }

    public static RpcClient get (int sid) {
        return  rpcClientMap.get(sid);
    }
}
